package com.pine.dcts.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.LinkedHashMap;
import java.util.Map;

@Configuration
@ConfigurationProperties(DctsPropertis.DATA_CORE_PROPERTIES)
@Setter
@Getter
public class DctsPropertis {

    public static final String DATA_CORE_PROPERTIES = "dcts.core";

    private String path;

    private String plugins;

    private Map<String, String> jobs = new LinkedHashMap();
    private String temp;

    private Task task = new Task();


    @Setter
    @Getter
    public static class Task{
        private int  maxNum = 200 ;

    }
}
